package com.surelution.lansao.wxmp.partner

import com.surelution.lansao.Partner
import com.surelution.lansao.wxmp.BaseLansaoAction
import com.surelution.whistle.core.Attribute


abstract class BaseLansaoPartnerAction extends BaseLansaoAction {
	
	protected Partner getPartner() {
		String name = getParam(Attribute.KEY_FromUserName)
		if(name) {
			return Partner.findByWxOpenId(name)
		}
		return null;
	}
	
}
